class_name ComboViewSubTypeItem_CMD_Weapon
extends ComboViewSubTypeItem

#region 属性
@export var weapon_names:Array[String]
@export var btn_scene:PackedScene
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
func excute(combo_view:ComboView):
	super.excute(combo_view)
	combo_view.set_info_visible(true)
	for weapon_name in weapon_names:
		if weapon_name:
			var btn:ComboViewBtn = btn_scene.instantiate() as ComboViewBtn
			btn.toggle_mode = false
			combo_view.add_item_list_item(btn)
func cancel():
	combo_view.set_info_visible(false)
#endregion
#region 公共方法
#endregion
#region 私有方法
#endregion
#region 生命周期函数
#endregion
